﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IPC.Communication.Reflection
{
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
    public class HslRedisListAttribute : Attribute
    {
        private long _endIndex = -1L;

	    public string ListKey
	    {
		    get;
		    set;
	    }

	    public long StartIndex
	    {
		    get;
		    set;
	    }

	    public long EndIndex
	    {
            get { return _endIndex; }
            set { _endIndex = value; }
	    }


	    public HslRedisListAttribute(string listKey)
	    {
		    ListKey = listKey;
	    }

	    public HslRedisListAttribute(string listKey, long startIndex)
	    {
		    ListKey = listKey;
		    StartIndex = startIndex;
	    }

	    public HslRedisListAttribute(string listKey, long startIndex, long endIndex)
	    {
		    ListKey = listKey;
		    StartIndex = startIndex;
		    EndIndex = endIndex;
	    }
    }
}
